SourceUrl

@Serializable
data class SourceUrl(val sourceId: String, val url: String, val title: String? = null, val providerMetadata: Map<String, JsonElement>? = null) : UIMessagePart

URL-shaped citation / web grounding source. Per historical parity gap #29, this is the split from a single unified Source variant — v6's SourceUrlUIPart.

sourceId is the provider's stable handle for the source so repeated mentions across multiple parts can be deduped.

Constructors

Link copied to clipboard
constructor(sourceId: String, url: String, title: String? = null, providerMetadata: Map<String, JsonElement>? = null)

Properties

Link copied to clipboard
val providerMetadata: Map<String, JsonElement>?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String